/*
 * 用户退出系统
 * 参数   交易码：trancode=9002 
 *
 */
package org.ccams.tran;

import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONObject;

public class Tran9002 extends AbstractJsonTran {

	@SuppressWarnings("unchecked")
	public void buildJSONObject(Map map, JSONObject json,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {

		request.getSession().removeAttribute("userSession");
		request.getSession().invalidate();
		HashMap<String, Object> jsonMap = new HashMap<String, Object>();
		jsonMap.put("success", true);
		jsonMap.put("message", "退出登录成功");
		json.putAll(jsonMap);
	}
}
